package cn.terminus.client.customer.customreceive.service;

import cn.terminus.client.customer.customreceive.param.*;
import cn.terminus.client.customer.customreceive.result.CustomReceiveResult;
import cn.terminus.client.customer.customreceive.result.CustomReceiveZgResult;
import cn.terminus.result.common.context.TerminusCallContext;
import cn.terminus.result.common.exception.ServiceException;
import cn.terminus.result.common.page.TerminusPageAble;
import cn.terminus.result.common.page.TerminusPageInfo;
import cn.terminus.result.common.result.TerminusResult;

import java.util.List;

/**
 * (CustomReceive)表服务接口
 *
 * @author makejava
 * @since 2021-08-12 10:27:51
 */
public interface CustomReceiveService {

    /**
     * 新增
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<String> add(CustomReceiveNewParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 更新
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<Boolean> update(CustomReceiveEditParam param, TerminusCallContext context) throws ServiceException;


    /**
     * gets
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<List<CustomReceiveResult>> gets(CustomReceiveGetsParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 删除
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<Boolean> delete(CustomReceiveDeleteParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 查询
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<List<CustomReceiveResult>> query(CustomReceiveQueryParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 分页查询
     *
     * @param param
     * @param page
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<TerminusPageAble<CustomReceiveZgResult>> page(CustomReceiveQueryParam param, TerminusPageInfo page, TerminusCallContext context) throws ServiceException;

    TerminusResult<Boolean> batchConfig(BatchConfigParam param) throws ServiceException;

    TerminusResult<Boolean> insertBatch(List<CustomReceiveNewParam> param) throws ServiceException;
}
